package com.poseidon.platform.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.poseidon.platform.entity.User;
import com.poseidon.platform.mapper.UserMapper;

@Service
public class UserService {
	@Resource
	private UserMapper userMapper;
	public User getUserById(int id){
		return userMapper.selectByPrimaryKey(id);
	};

	public User findUserByLoginName(String username){
		return userMapper.findUserByLoginName(username);
	};
}
